package com.deyuanyun.pic.eqpt.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.deyuanyun.pic.common.util.DateUtil;
import com.deyuanyun.pic.common.util.PassWordUtil;

public class ExtemalUse {
    private String id;

    private Date createDate;

    private String createUser;

    private String createRemark;

    private Date updateDate;

    private String updateUser;

    private String updateRemark;

    private Short deleted;

    private Short version;

    private Short isNewest;

    private String dataStated;

    private String eqptEquipmentId;

    private String useCompany;

    private String useUser;

    private String mobile;

    private String startDate;

    private String endDate;

    private Date planEndDate;

    private String pigTaskId;
    
    
    private String modelNumber;
    
    private String uniquCide;
    
    private String customNumber;
    
    
    private String startDateStr;

    private String endDateStr;

    private String planEndDateStr;
    
    
    private String pwd;

    private String taskName;
   

    
    public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getPwd(){
    	return PassWordUtil.encodePassword(mobile, "111111");
    }

    public String getId() {
        return id;
    }

    public String getModelNumber() {
		return modelNumber;
	}

	public void setModelNumber(String modelNumber) {
		this.modelNumber = modelNumber;
	}

	public String getUniquCide() {
		return uniquCide;
	}

	public void setUniquCide(String uniquCide) {
		this.uniquCide = uniquCide;
	}

	public String getCustomNumber() {
		return customNumber;
	}

	public void setCustomNumber(String customNumber) {
		this.customNumber = customNumber;
	}

	public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    public String getCreateRemark() {
        return createRemark;
    }

    public void setCreateRemark(String createRemark) {
        this.createRemark = createRemark == null ? null : createRemark.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    public String getUpdateRemark() {
        return updateRemark;
    }

    public void setUpdateRemark(String updateRemark) {
        this.updateRemark = updateRemark == null ? null : updateRemark.trim();
    }

    public Short getDeleted() {
        return deleted;
    }

    public void setDeleted(Short deleted) {
        this.deleted = deleted;
    }

    public Short getVersion() {
        return version;
    }

    public void setVersion(Short version) {
        this.version = version;
    }

    public Short getIsNewest() {
        return isNewest;
    }

    public void setIsNewest(Short isNewest) {
        this.isNewest = isNewest;
    }

    public String getDataStated() {
        return dataStated;
    }

    public void setDataStated(String dataStated) {
        this.dataStated = dataStated == null ? null : dataStated.trim();
    }

    public String getEqptEquipmentId() {
        return eqptEquipmentId;
    }

    public void setEqptEquipmentId(String eqptEquipmentId) {
        this.eqptEquipmentId = eqptEquipmentId == null ? null : eqptEquipmentId.trim();
    }

    public String getUseCompany() {
        return useCompany;
    }

    public void setUseCompany(String useCompany) {
        this.useCompany = useCompany == null ? null : useCompany.trim();
    }

    public String getUseUser() {
        return useUser;
    }

    public void setUseUser(String useUser) {
        this.useUser = useUser == null ? null : useUser.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Date getPlanEndDate() {
        return planEndDate;
    }

    public void setPlanEndDate(Date planEndDate) {
        this.planEndDate = planEndDate;
    }

    public String getPigTaskId() {
        return pigTaskId;
    }

    public void setPigTaskId(String pigTaskId) {
        this.pigTaskId = pigTaskId == null ? null : pigTaskId.trim();
    }

	public String getStartDateStr() {
		return startDate;
		
	}

	public String getEndDateStr() {
			return endDate;
	}

	public String getPlanEndDateStr() {
		if(planEndDateStr != null)
		{
			return planEndDateStr;
		}
		if(planEndDate==null){
			return null;
		}
		 SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
			return f.format(planEndDate);
	}

	public void setStartDateStr(String startDateStr) {
		this.startDateStr = startDateStr;
	}

	public void setEndDateStr(String endDateStr) {
		this.endDateStr = endDateStr;
	}

	public void setPlanEndDateStr(String planEndDateStr) {
		this.planEndDateStr = planEndDateStr;
	}
    
    
    
}